home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1989-11-15 | 4.0 KB | [ TEXT/pdos]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
You can browse this item here: TN.PDOS.009
Confidence Program Detection Match Type Support
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
GeoWorks GEOS Data (other/geoWorksGEOSData)
ext
Unsupported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, inited, Wed Nov 15 12:35:47 1989, modified Wed Nov 15 12:35:47 1989, creator Apple ProDOS file system, type ASCII, 3584 bytes "TN.PDOS.009" , at 0xe80 382 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ pdos]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 0b 54 4e 2e 50 44 4f | 53 2e 30 30 39 00 00 00 |..TN.PDO|S.009...| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 70 64 6f | 73 01 00 00 00 00 00 00 |.TEXTpdo|s.......| |00000050| 00 00 00 00 00 0e 00 00 | 00 01 7e a1 87 4e f3 a1 |........|..~..N..| |00000060| 87 4e f3 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.N......|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 fd c5 00 00 |........|........| |00000080| 41 70 70 6c 65 20 49 49 | 0d 54 65 63 68 6e 69 63 |Apple II|.Technic| |00000090| 61 6c 20 4e 6f 74 65 73 | 0d 5f 5f 5f 5f 5f 5f 5f |al Notes|._______| |000000a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________| |000000b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________| |000000c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________| |000000d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________| |000000e0| 5f 5f 5f 5f 5f 5f 0d 20 | 20 20 20 20 20 20 20 20 |______. | | |000000f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00000100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00000110| 20 20 20 20 20 20 20 20 | 20 44 65 76 65 6c 6f 70 | | Develop| |00000120| 65 72 20 54 65 63 68 6e | 69 63 61 6c 20 53 75 70 |er Techn|ical Sup| |00000130| 70 6f 72 74 0d 0d 0d 50 | 72 6f 44 4f 53 20 38 0d |port...P|roDOS 8.| |00000140| 23 39 3a 20 20 20 20 42 | 75 66 66 65 72 20 4d 61 |#9: B|uffer Ma| |00000150| 6e 61 67 65 6d 65 6e 74 | 20 55 73 69 6e 67 20 42 |nagement| Using B| |00000160| 41 53 49 43 2e 53 59 53 | 54 45 4d 0d 0d 52 65 76 |ASIC.SYS|TEM..Rev| |00000170| 69 73 65 64 20 62 79 3a | 20 20 20 20 4d 61 74 74 |ised by:| Matt| |00000180| 20 44 65 61 74 68 65 72 | 61 67 65 20 20 20 20 20 | Deather|age | |00000190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000001a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 4e 6f 76 | | Nov| |000001b0| 65 6d 62 65 72 20 31 39 | 38 38 0d 52 65 76 69 73 |ember 19|88.Revis| |000001c0| 65 64 20 62 79 3a 20 20 | 20 20 50 65 74 65 20 4d |ed by: | Pete M| |000001d0| 63 44 6f 6e 61 6c 64 20 | 20 20 20 20 20 20 20 20 |cDonald | | |000001e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000001f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 4f 63 74 6f | | Octo| |00000200| 62 65 72 20 31 39 38 35 | 0d 0d 54 68 69 73 20 54 |ber 1985|..This T| |00000210| 65 63 68 6e 69 63 61 6c | 20 4e 6f 74 65 20 64 69 |echnical| Note di| |00000220| 73 63 75 73 73 65 73 20 | 6d 65 74 68 6f 64 73 20 |scusses |methods | |00000230| 66 6f 72 20 61 6c 6c 6f | 63 61 74 69 6e 67 20 62 |for allo|cating b| |00000240| 75 66 66 65 72 73 20 77 | 68 69 63 68 20 77 69 6c |uffers w|hich wil| |00000250| 6c 20 6e 6f 74 20 62 65 | 20 0d 61 72 62 69 74 72 |l not be| .arbitr| |00000260| 61 72 69 6c 79 20 64 65 | 61 6c 6c 6f 63 61 74 65 |arily de|allocate| |00000270| 64 20 69 6e 20 42 41 53 | 49 43 2e 53 59 53 54 45 |d in BAS|IC.SYSTE| |00000280| 4d 2e 0d 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |M.._____|________| |00000290| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________| |000002a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________| |000002b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________| |000002c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________| |000002d0| 0d 0d 53 65 63 74 69 6f | 6e 20 41 2e 32 2e 31 20 |..Sectio|n A.2.1 | |000002e0| 6f 66 20 74 68 65 20 50 | 72 6f 44 4f 53 20 38 20 |of the P|roDOS 8 | |000002f0| 54 65 63 68 6e 69 63 61 | 6c 20 52 65 66 65 72 65 |Technica|l Refere| |00000300| 6e 63 65 20 4d 61 6e 75 | 61 6c 20 64 65 73 63 72 |nce Manu|al descr| |00000310| 69 62 65 73 20 69 6e 20 | 64 65 74 61 69 6c 20 0d |ibes in |detail .| |00000320| 68 6f 77 20 61 6e 20 61 | 70 70 6c 69 63 61 74 69 |how an a|pplicati| |00000330| 6f 6e 20 6d 61 79 20 6f | 62 74 61 69 6e 20 61 20 |on may o|btain a | |00000340| 62 75 66 66 65 72 20 66 | 72 6f 6d 20 42 41 53 49 |buffer f|rom BASI| |00000350| 43 2e 53 59 53 54 45 4d | 20 66 6f 72 20 69 74 73 |C.SYSTEM| for its| |00000360| 20 6f 77 6e 20 75 73 65 | 2e 20 20 54 68 65 20 0d | own use|. The .| |00000370| 62 75 66 66 65 72 20 77 | 69 6c 6c 20 62 65 20 72 |buffer w|ill be r| |00000380| 65 73 70 65 63 74 65 64 | 20 62 79 20 42 41 53 49 |espected| by BASI| |00000390| 43 2e 53 59 53 54 45 4d | 2c 20 73 6f 20 69 66 20 |C.SYSTEM|, so if | |000003a0| 79 6f 75 20 63 68 6f 6f | 73 65 20 74 6f 20 70 75 |you choo|se to pu| |000003b0| 74 20 61 20 70 72 6f 67 | 72 61 6d 20 6f 72 20 0d |t a prog|ram or .| |000003c0| 6f 74 68 65 72 20 65 78 | 65 63 75 74 61 62 6c 65 |other ex|ecutable| |000003d0| 20 63 6f 64 65 20 69 6e | 20 74 68 65 72 65 2c 20 | code in| there, | |000003e0| 69 74 20 77 69 6c 6c 20 | 62 65 20 73 61 66 65 2e |it will |be safe.| |000003f0| 0d 0d 48 6f 77 65 76 65 | 72 2c 20 42 41 53 49 43 |..Howeve|r, BASIC| |00000400| 2e 53 59 53 54 45 4d 20 | 64 6f 65 73 20 6e 6f 74 |.SYSTEM |does not| |00000410| 20 70 72 6f 76 69 64 65 | 20 61 20 77 61 79 20 74 | provide| a way t| |00000420| 6f 20 73 65 6c 65 63 74 | 69 76 65 6c 79 20 64 65 |o select|ively de| |00000430| 61 6c 6c 6f 63 61 74 65 | 20 74 68 65 20 0d 62 75 |allocate| the .bu| |00000440| 66 66 65 72 73 20 69 74 | 20 68 61 73 20 61 6c 6c |ffers it| has all| |00000450| 6f 63 61 74 65 64 2e 20 | 20 41 6c 74 68 6f 75 67 |ocated. | Althoug| |00000460| 68 20 69 74 20 69 73 20 | 71 75 69 74 65 20 65 61 |h it is |quite ea| |00000470| 73 79 20 74 6f 20 61 6c | 6c 6f 63 61 74 65 20 73 |sy to al|locate s| |00000480| 70 61 63 65 20 62 79 20 | 0d 63 61 6c 6c 69 6e 67 |pace by |.calling| |00000490| 20 47 45 54 42 55 46 52 | 20 28 24 42 45 46 35 29 | GETBUFR| ($BEF5)| |000004a0| 20 61 6e 64 20 61 6c 73 | 6f 20 71 75 69 74 65 20 | and als|o quite | |000004b0| 65 61 73 79 20 74 6f 20 | 64 65 61 6c 6c 6f 63 61 |easy to |dealloca| |000004c0| 74 65 20 62 79 20 63 61 | 6c 6c 69 6e 67 20 46 52 |te by ca|lling FR| |000004d0| 45 45 42 55 46 52 20 0d | 28 24 42 45 46 38 29 2c |EEBUFR .|($BEF8),| |000004e0| 20 69 74 20 69 73 20 6e | 6f 74 20 73 6f 20 65 61 | it is n|ot so ea| |000004f0| 73 79 20 74 6f 20 75 73 | 65 20 46 52 45 45 42 55 |sy to us|e FREEBU| |00000500| 46 52 20 74 6f 20 64 65 | 61 6c 6c 6f 63 61 74 65 |FR to de|allocate| |00000510| 20 61 20 70 61 72 74 69 | 63 75 6c 61 72 20 62 75 | a parti|cular bu| |00000520| 66 66 65 72 2e 0d 0d 49 | 6e 20 66 61 63 74 2c 20 |ffer...I|n fact, | |00000530| 46 52 45 45 42 55 46 52 | 20 61 6c 77 61 79 73 20 |FREEBUFR| always | |00000540| 64 65 61 6c 6c 6f 63 61 | 74 65 73 20 61 6c 6c 20 |dealloca|tes all | |00000550| 62 75 66 66 65 72 73 20 | 61 6c 6c 6f 63 61 74 65 |buffers |allocate| |00000560| 64 20 62 79 20 47 45 54 | 42 55 46 52 2e 20 20 54 |d by GET|BUFR. T| |00000570| 68 69 73 20 0d 69 73 20 | 66 69 6e 65 20 66 6f 72 |his .is |fine for| |00000580| 20 74 72 61 6e 73 69 65 | 6e 74 20 61 70 70 6c 69 | transie|nt appli| |00000590| 63 61 74 69 6f 6e 73 2c | 20 62 75 74 20 61 20 6d |cations,| but a m| |000005a0| 65 74 68 6f 64 20 69 73 | 20 6e 65 65 64 65 64 20 |ethod is| needed | |000005b0| 74 6f 20 70 72 6f 74 65 | 63 74 20 61 20 73 74 61 |to prote|ct a sta| |000005c0| 74 69 63 20 0d 63 6f 64 | 65 20 62 75 66 66 65 72 |tic .cod|e buffer| |000005d0| 20 66 72 6f 6d 20 62 65 | 69 6e 67 20 64 65 61 6c | from be|ing deal| |000005e0| 6c 6f 63 61 74 65 64 20 | 62 79 20 46 52 45 45 42 |located |by FREEB| |000005f0| 55 46 52 20 66 6f 72 20 | 61 20 73 74 61 74 69 63 |UFR for |a static| |00000600| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2e 0d 0d 4c | applica|tion...L| |00000610| 6f 63 61 74 69 6f 6e 20 | 52 53 48 49 4d 45 4d 20 |ocation |RSHIMEM | |00000620| 28 24 42 45 46 42 29 20 | 63 6f 6e 74 61 69 6e 73 |($BEFB) |contains| |00000630| 20 74 68 65 20 68 69 67 | 68 20 62 79 74 65 20 6f | the hig|h byte o| |00000640| 66 20 74 68 65 20 68 69 | 67 68 65 73 74 20 61 76 |f the hi|ghest av| |00000650| 61 69 6c 61 62 6c 65 20 | 0d 6d 65 6d 6f 72 79 20 |ailable |.memory | |00000660| 6c 6f 63 61 74 69 6f 6e | 20 66 6f 72 20 62 75 66 |location| for buf| |00000670| 66 65 72 73 2c 20 6e 6f | 72 6d 61 6c 6c 79 20 24 |fers, no|rmally $| |00000680| 39 36 2e 20 20 46 52 45 | 45 42 55 46 52 20 75 73 |96. FRE|EBUFR us| |00000690| 65 73 20 69 74 20 74 6f | 20 64 65 74 65 72 6d 69 |es it to| determi| |000006a0| 6e 65 20 74 68 65 20 0d | 62 65 67 69 6e 6e 69 6e |ne the .|beginnin| |000006b0| 67 20 70 61 67 65 20 6f | 66 20 74 68 65 20 68 69 |g page o|f the hi| |000006c0| 67 68 65 73 74 20 28 6f | 72 20 66 69 72 73 74 29 |ghest (o|r first)| |000006d0| 20 62 75 66 66 65 72 2e | 20 20 42 79 20 6c 6f 77 | buffer.| By low| |000006e0| 65 72 69 6e 67 20 74 68 | 65 20 76 61 6c 75 65 20 |ering th|e value | |000006f0| 6f 66 20 0d 52 53 48 49 | 4d 45 4d 20 69 6d 6d 65 |of .RSHI|MEM imme| |00000700| 64 69 61 74 65 6c 79 20 | 61 66 74 65 72 20 74 68 |diately |after th| |00000710| 65 20 66 69 72 73 74 20 | 63 61 6c 6c 20 74 6f 20 |e first |call to | |00000720| 47 45 54 42 55 46 52 2c | 20 61 6e 64 20 62 65 66 |GETBUFR,| and bef| |00000730| 6f 72 65 20 61 6e 79 20 | 63 61 6c 6c 20 74 6f 20 |ore any |call to | |00000740| 0d 46 52 45 45 42 55 46 | 52 2c 20 77 65 20 63 61 |.FREEBUF|R, we ca| |00000750| 6e 20 66 6f 6f 6c 20 46 | 52 45 45 42 55 46 52 20 |n fool F|REEBUFR | |00000760| 69 6e 74 6f 20 6e 6f 74 | 20 72 65 63 6c 61 69 6d |into not| reclaim| |00000770| 69 6e 67 20 61 6c 6c 20 | 74 68 65 20 73 70 61 63 |ing all |the spac| |00000780| 65 2e 20 20 53 6f 20 61 | 6c 74 68 6f 75 67 68 20 |e. So a|lthough | |00000790| 0d 69 74 20 69 73 20 6e | 6f 74 20 70 6f 73 73 69 |.it is n|ot possi| |000007a0| 62 6c 65 20 74 6f 20 73 | 65 6c 65 63 74 69 76 65 |ble to s|elective| |000007b0| 6c 79 20 64 65 61 6c 6c | 6f 63 61 74 65 20 62 75 |ly deall|ocate bu| |000007c0| 66 66 65 72 73 2c 20 69 | 74 20 69 73 20 73 74 69 |ffers, i|t is sti| |000007d0| 6c 6c 20 70 6f 73 73 69 | 62 6c 65 20 74 6f 20 0d |ll possi|ble to .| |000007e0| 72 65 73 65 72 76 65 20 | 73 70 61 63 65 20 74 68 |reserve |space th| |000007f0| 61 74 20 46 52 45 45 42 | 55 46 52 20 77 69 6c 6c |at FREEB|UFR will| |00000800| 20 6e 6f 74 20 72 65 63 | 6c 61 69 6d 2e 0d 0d 50 | not rec|laim...P| |00000810| 68 79 73 69 63 61 6c 6c | 79 2c 20 77 65 20 70 6c |hysicall|y, we pl| |00000820| 61 63 65 20 74 68 65 20 | 63 6f 64 65 20 62 75 66 |ace the |code buf| |00000830| 66 65 72 20 62 65 74 77 | 65 65 6e 20 42 41 53 49 |fer betw|een BASI| |00000840| 43 2e 53 59 53 54 45 4d | 20 61 6e 64 20 69 74 73 |C.SYSTEM| and its| |00000850| 20 62 75 66 66 65 72 73 | 2c 20 69 6e 20 0d 74 68 | buffers|, in .th| |00000860| 65 20 73 70 61 63 65 20 | 66 72 6f 6d 20 24 39 39 |e space |from $99| |00000870| 46 46 20 64 6f 77 6e 2e | 0d 0d 41 66 74 65 72 20 |FF down.|..After | |00000880| 63 72 65 61 74 69 6e 67 | 20 74 68 65 20 70 72 6f |creating| the pro| |00000890| 74 65 63 74 65 64 20 73 | 74 61 74 69 63 20 63 6f |tected s|tatic co| |000008a0| 64 65 20 62 75 66 66 65 | 72 2c 20 77 65 20 63 61 |de buffe|r, we ca| |000008b0| 6e 20 63 61 6c 6c 20 47 | 45 54 42 55 46 52 20 61 |n call G|ETBUFR a| |000008c0| 6e 64 20 0d 46 52 45 45 | 42 55 46 52 20 74 6f 20 |nd .FREE|BUFR to | |000008d0| 6d 61 69 6e 74 61 69 6e | 20 74 65 6d 70 6f 72 61 |maintain| tempora| |000008e0| 72 79 20 62 75 66 66 65 | 72 73 20 61 73 20 6e 65 |ry buffe|rs as ne| |000008f0| 65 64 65 64 20 62 79 20 | 6f 75 72 20 70 72 6f 74 |eded by |our prot| |00000900| 65 63 74 65 64 20 6d 6f | 64 75 6c 65 2e 20 20 0d |ected mo|dule. .| |00000910| 46 52 45 45 42 55 46 52 | 20 77 69 6c 6c 20 6e 6f |FREEBUFR| will no| |00000920| 74 20 72 65 63 6c 61 69 | 6d 20 74 68 65 20 70 72 |t reclai|m the pr| |00000930| 6f 74 65 63 74 65 64 20 | 62 75 66 66 65 72 20 75 |otected |buffer u| |00000940| 6e 74 69 6c 20 61 66 74 | 65 72 20 52 53 48 49 4d |ntil aft|er RSHIM| |00000950| 45 4d 20 69 73 20 72 65 | 73 74 6f 72 65 64 20 0d |EM is re|stored .| |00000960| 74 6f 20 69 74 73 20 6f | 72 69 67 69 6e 61 6c 20 |to its o|riginal | |00000970| 76 61 6c 75 65 2e 0d 0d | 54 68 65 20 66 6f 6c 6c |value...|The foll| |00000980| 6f 77 69 6e 67 20 69 73 | 20 61 20 73 6b 65 6c 65 |owing is| a skele| |00000990| 74 6f 6e 20 65 78 61 6d | 70 6c 65 20 77 68 69 63 |ton exam|ple whic| |000009a0| 68 20 61 6c 6c 6f 63 61 | 74 65 73 20 61 20 74 77 |h alloca|tes a tw| |000009b0| 6f 2d 70 61 67 65 20 62 | 75 66 66 65 72 20 66 6f |o-page b|uffer fo| |000009c0| 72 20 61 20 0d 73 74 61 | 74 69 63 20 63 6f 64 65 |r a .sta|tic code| |000009d0| 20 6d 6f 64 75 6c 65 2c | 20 70 72 6f 74 65 63 74 | module,| protect| |000009e0| 73 20 69 74 20 66 72 6f | 6d 20 46 52 45 45 42 55 |s it fro|m FREEBU| |000009f0| 46 52 2c 20 74 68 65 6e | 20 64 65 70 72 6f 74 65 |FR, then| deprote| |00000a00| 63 74 73 20 69 74 20 61 | 6e 64 20 72 65 73 74 6f |cts it a|nd resto| |00000a10| 72 65 73 20 0d 69 74 20 | 74 6f 20 69 74 73 20 6f |res .it |to its o| |00000a20| 72 69 67 69 6e 61 6c 20 | 73 74 61 74 65 2e 0d 0d |riginal |state...| |00000a30| 53 54 41 52 54 20 20 20 | 20 4c 44 41 20 23 24 30 |START | LDA #$0| |00000a40| 32 20 20 20 20 20 20 20 | 20 20 20 20 20 3b 67 65 |2 | ;ge| |00000a50| 74 20 32 20 70 61 67 65 | 73 0d 20 20 20 20 20 20 |t 2 page|s. | |00000a60| 20 20 20 4a 53 52 20 47 | 45 54 42 55 46 52 20 0d | JSR G|ETBUFR .| |00000a70| 20 20 20 20 20 20 20 20 | 20 4c 44 41 20 52 53 48 | | LDA RSH| |00000a80| 49 4d 45 4d 20 20 20 20 | 20 20 20 20 20 3b 67 65 |IMEM | ;ge| |00000a90| 74 20 63 75 72 72 65 6e | 74 20 52 53 48 49 4d 45 |t curren|t RSHIME| |00000aa0| 4d 0d 20 20 20 20 20 20 | 20 20 20 53 45 43 20 20 |M. | SEC | |00000ab0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3b | | ;| |00000ac0| 72 65 61 64 79 20 66 6f | 72 20 73 75 62 0d 20 20 |ready fo|r sub. | |00000ad0| 20 20 20 20 20 20 20 53 | 42 43 20 23 24 30 32 20 | S|BC #$02 | |00000ae0| 20 20 20 20 20 20 20 20 | 20 20 20 3b 6d 69 6e 75 | | ;minu| |00000af0| 73 20 32 20 70 61 67 65 | 73 0d 20 20 20 20 20 20 |s 2 page|s. | |00000b00| 20 20 20 53 54 41 20 52 | 53 48 49 4d 45 4d 20 20 | STA R|SHIMEM | |00000b10| 20 20 20 20 20 20 20 3b | 73 61 76 65 20 6e 65 77 | ;|save new| |00000b20| 20 76 61 6c 20 74 6f 20 | 66 6f 6f 6c 20 46 52 45 | val to |fool FRE| |00000b30| 45 42 55 46 52 0d 20 20 | 20 20 20 20 20 20 20 4a |EBUFR. | J| |00000b40| 53 52 20 46 52 45 45 42 | 55 46 52 20 20 20 20 20 |SR FREEB|UFR | |00000b50| 20 20 20 3b 43 41 4c 4c | 20 46 52 45 45 42 55 46 | ;CALL| FREEBUF| |00000b60| 52 20 74 6f 20 64 65 61 | 6c 6c 6f 63 61 74 65 2e |R to dea|llocate.| |00000b70| 0d 0d 41 74 20 74 68 69 | 73 20 70 6f 69 6e 74 2c |..At thi|s point,| |00000b80| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 52 53 | the val|ue of RS| |00000b90| 48 49 4d 45 4d 20 69 73 | 20 74 68 65 20 70 61 67 |HIMEM is| the pag| |00000ba0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 74 68 65 20 |e number| of the | |00000bb0| 62 65 67 69 6e 6e 69 6e | 67 20 6f 66 20 6f 75 72 |beginnin|g of our| |00000bc0| 20 0d 70 72 6f 74 65 63 | 74 65 64 20 62 75 66 66 | .protec|ted buff| |00000bd0| 65 72 2e 20 20 54 68 65 | 20 73 74 61 74 69 63 20 |er. The| static | |00000be0| 63 6f 64 65 20 6d 61 79 | 20 6e 6f 77 20 75 73 65 |code may| now use| |00000bf0| 20 47 45 54 42 55 46 52 | 20 61 6e 64 20 46 52 45 | GETBUFR| and FRE| |00000c00| 45 42 55 46 52 20 66 6f | 72 20 0d 74 72 61 6e 73 |EBUFR fo|r .trans| |00000c10| 69 65 6e 74 20 66 69 6c | 65 20 62 75 66 66 65 72 |ient fil|e buffer| |00000c20| 73 20 77 69 74 68 6f 75 | 74 20 66 65 61 72 20 6f |s withou|t fear o| |00000c30| 66 20 66 72 65 65 69 6e | 67 20 69 74 73 20 6f 77 |f freein|g its ow| |00000c40| 6e 20 73 70 61 63 65 20 | 66 72 6f 6d 20 52 53 48 |n space |from RSH| |00000c50| 49 4d 45 4d 20 74 6f 20 | 0d 24 39 39 46 46 2e 0d |IMEM to |.$99FF..| |00000c60| 0d 54 6f 20 72 65 6c 65 | 61 73 65 20 74 68 65 20 |.To rele|ase the | |00000c70| 70 72 6f 74 65 63 74 65 | 64 20 73 70 61 63 65 2c |protecte|d space,| |00000c80| 20 73 69 6d 70 6c 79 20 | 72 65 73 74 6f 72 65 20 | simply |restore | |00000c90| 52 53 48 49 4d 45 4d 20 | 74 6f 20 69 74 73 20 6f |RSHIMEM |to its o| |00000ca0| 72 69 67 69 6e 61 6c 20 | 76 61 6c 75 65 20 0d 61 |riginal |value .a| |00000cb0| 6e 64 20 70 65 72 66 6f | 72 6d 20 61 20 4a 53 52 |nd perfo|rm a JSR| |00000cc0| 20 46 52 45 45 42 55 46 | 52 2e 0d 0d 45 4e 44 20 | FREEBUF|R...END | |00000cd0| 20 20 20 20 20 4c 44 41 | 20 52 53 48 49 4d 45 4d | LDA| RSHIMEM| |00000ce0| 20 20 20 20 20 20 20 20 | 20 3b 67 65 74 20 63 75 | | ;get cu| |00000cf0| 72 72 65 6e 74 20 76 61 | 6c 0d 20 20 20 20 20 20 |rrent va|l. | |00000d00| 20 20 20 43 4c 43 20 20 | 20 20 20 20 20 20 20 20 | CLC | | |00000d10| 20 20 20 20 20 20 20 3b | 72 65 61 64 79 20 66 6f | ;|ready fo| |00000d20| 72 20 41 44 44 0d 20 20 | 20 20 20 20 20 20 20 41 |r ADD. | A| |00000d30| 44 43 20 23 32 20 20 20 | 20 20 20 20 20 20 20 20 |DC #2 | | |00000d40| 20 20 20 3b 67 69 76 65 | 20 62 61 63 6b 20 32 20 | ;give| back 2 | |00000d50| 70 61 67 65 73 0d 20 20 | 20 20 20 20 20 20 20 53 |pages. | S| |00000d60| 54 41 20 52 53 48 49 4d | 45 4d 20 20 20 20 20 20 |TA RSHIM|EM | |00000d70| 20 20 20 3b 74 65 6c 6c | 20 46 52 45 45 42 55 46 | ;tell| FREEBUF| |00000d80| 52 20 61 62 6f 75 74 20 | 69 74 0d 20 20 20 20 20 |R about |it. | |00000d90| 20 20 20 20 4a 53 52 20 | 46 52 45 45 42 55 46 52 | JSR |FREEBUFR| |00000da0| 20 20 20 20 20 20 20 20 | 3b 44 4f 20 46 52 45 45 | |;DO FREE| |00000db0| 42 55 46 52 0d 20 20 20 | 20 20 20 20 20 20 52 54 |BUFR. | RT| |00000dc0| 53 20 0d 0d 59 6f 75 20 | 63 61 6e 20 72 65 73 65 |S ..You |can rese| |00000dd0| 72 76 65 20 61 6e 79 20 | 6e 75 6d 62 65 72 20 6f |rve any |number o| |00000de0| 66 20 70 61 67 65 73 20 | 75 73 69 6e 67 20 74 68 |f pages |using th| |00000df0| 69 73 20 6d 65 74 68 6f | 64 2c 20 61 73 20 6c 6f |is metho|d, as lo| |00000e00| 6e 67 20 61 73 20 74 68 | 65 20 61 6d 6f 75 6e 74 |ng as th|e amount| |00000e10| 20 0d 79 6f 75 20 72 65 | 73 65 72 76 65 20 69 73 | .you re|serve is| |00000e20| 20 77 69 74 68 69 6e 20 | 61 76 61 69 6c 61 62 6c | within |availabl| |00000e30| 65 20 6d 65 6d 6f 72 79 | 20 6c 69 6d 69 74 73 2e |e memory| limits.| |00000e40| 20 0d 0d 0d 46 75 72 74 | 68 65 72 20 52 65 66 65 | ...Furt|her Refe| |00000e50| 72 65 6e 63 65 0d 6f 20 | 20 20 20 50 72 6f 44 4f |rence.o | ProDO| |00000e60| 53 20 38 20 54 65 63 68 | 6e 69 63 61 6c 20 52 65 |S 8 Tech|nical Re| |00000e70| 66 65 72 65 6e 63 65 20 | 4d 61 6e 75 61 6c 0d 0d |ference |Manual..| |00000e80| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2| |00000e90| 61 6c 20 4e 6f 74 65 73 | 0d 0d 0d 09 4e 6f 76 65 |al Notes|....Nove| |00000ea0| 6d 62 65 72 20 31 39 38 | 38 0d 0d 0d 0d 0d 31 20 |mber 198|8.....1 | |00000eb0| 18 31 2e 20 44 44 49 4e | 49 54 45 78 70 61 6e 64 |.1. DDIN|ITExpand| |00000ec0| 54 65 6d 70 46 69 6c 65 | 20 70 02 00 00 00 44 44 |TempFile| p....DD| |00000ed0| 00 00 44 44 54 4d 44 44 | 41 50 01 00 00 40 00 c0 |..DDTMDD|AP...@..| |00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000ef0| 00 00 a5 ca d1 32 00 00 | 0e 00 00 00 01 7e 2e 53 |.....2..|.....~.S| |00000f00| 59 53 54 45 4d 09 31 20 | 6f 66 20 32 0d 0d 0d 0d |YSTEM.1 |of 2....| |00000f10| 0d 50 72 6f 44 4f 53 20 | 38 0d 23 39 3a 20 20 42 |.ProDOS |8.#9: B| |00000f20| 75 66 66 65 72 20 4d 61 | 6e 61 67 65 6d 65 6e 74 |uffer Ma|nagement| |00000f30| 20 55 73 69 6e 67 20 42 | 41 53 49 43 2e 53 59 53 | Using B|ASIC.SYS| |00000f40| 54 45 4d 09 31 20 6f 66 | 20 32 0d 0d 0d 0d 41 70 |TEM.1 of| 2....Ap| |00000f50| 70 6c 65 20 49 49 0d 54 | 65 63 68 6e 69 63 61 6c |ple II.T|echnical| |00000f60| 20 4e 6f 74 65 73 0d 5f | 5f 5f 5f 5f 5f 5f 5f 5f | Notes._|________| |00000f70| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________| |00000f80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....| |00000f90| 00 00 80 01 42 fe 80 01 | 4d f6 00 00 00 00 00 00 |....B...|M.......| |00000fa0| 00 00 00 00 00 00 00 06 | 00 04 00 3c 00 24 01 dd |........|...<.$..| |00000fb0| 02 3d 00 3c 00 24 01 dd | 02 3d 9f cd a8 a7 00 00 |.=.<.$..|.=......| |00000fc0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 00 |........|........| |00000fd0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 1c 10 4c |...L...L|...2...L| |00000fe0| 08 16 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..| |00000ff0| 00 0a 03 ed ff ff 00 00 | 00 00 00 1d 46 08 00 00 |........|....F...| +--------+-------------------------+-------------------------+--------+--------+